import service from './service';

/**
 * 获取系统时间
 * @param url 请求地址
 * @example const res =await sys_date();
 */
export default async function sys_date() {
	const time = await service<{
		timeStamp: number;
		simpleDate: string;
		localDate: string;
		code: '1' | '0';
		msg: string;
	}>('dataservice.fetchsystime', {}, false, false);
	return time.timeStamp;
}
